-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API] Move the zero_infinity parameter of CTCLoss from the forward function to the constructor
#76156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added 'zero_infinity' parameter to CTC loss initialization and forward method.
|
你的PR提交成功,感谢你对开源项目的贡献! |
Refactor zero_infinity parameter handling in CTC loss.
|
描述里说清楚问题,写清上下文 |
ok |
zero_infinity a constructor arg for CTCLoss while keeping forward-compatibilityzero_infinity parameter of CTCLoss from the forward function to the constructor
|
/re-run all-failed |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #76156 +/- ##
===========================================
Coverage ? 100.00%
===========================================
Files ? 1
Lines ? 2
Branches ? 0
===========================================
Hits ? 2
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Category
User Experience
PR Types
Bug fixes
Description
将在 #75742 中错误添加到
paddle.nn.CTCLoss中forward函数参数zero_infinity移到__init__上,以保持接口和 PyTorchtorch.nn.CTCLoss1 一致#75742 刚刚合入且未发版,尚无需考虑兼容性
Footnotes
https://docs.pytorch.org/docs/stable/generated/torch.nn.CTCLoss.html ↩